<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/feedback',
    'namespace' => 'Frieza\\Modules\\Feedback\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/list', 'FeedBackController@index');
    $router->get('/list/create', 'FeedBackController@create');
    $router->get('/list/{id}/edit', 'FeedBackController@edit');
    $router->post('/list/save', 'FeedBackController@save');

    $router->get('/list/sameword', 'FeedBackController@sameWordList');
    $router->put('/list/sameword/{id}', 'FeedBackController@sameWordEdit');
    $router->get('/list/sameword/create', 'FeedBackController@sameWordCreate');
    $router->post('/list/sameword/save', 'FeedBackController@sameWordSave');

    $router->get('/list/stoplist', 'FeedBackController@stopList');
    $router->post('/list/stoplist/save', 'FeedBackController@stopSave');

    $router->get('/list/yaml', 'FeedBackController@yamlConfig');
    $router->post('/list/yaml/save', 'FeedBackController@yamlSave');
});
